<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>查看已选课程</title>
</head>
<center><h1>个人选课系统</h1></center>

<form method="post" th:align="center" th:object="${userInfo}">
<center><h3>个人信息</h3></center>
姓名：<input type="text" readonly="readonly" th:value="${userInfo.name}">
学号：<input type="text" readonly="readonly" th:value="${userInfo.id}">
专业：<input type="text" readonly="readonly" th:value="${userInfo.profession}">
年级：<input type="text" readonly="readonly" th:value="${userInfo.grade}">
学院：<input type="text" readonly="readonly" th:value="${userInfo.college}">
       <br>
</form>
<form method="get" th:align="center" action="/classtofirst">
  <!--遍历课程列表-->
<center><h3>已选课程</h3></center>
       <div th:each="classtochoose:${classes}">
           <input name="classtochooses" type="checkbox" th:value="${classtochoose.name}"/>
           <span th:text="${classtochoose.name}"></span>
       </div>
       <center><button>返回主页</button></center>
</form>
</body>
</html>